/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.csit.iap.domain;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Kundzia
 */
public class Book {
    private String isbn;
    private String title;
    private Publisher publisher;
    private List<Author> authors;
    private double price;
    private int amount;

    public Book() {
        this.authors = new ArrayList<Author>();
    }

    public Book(String isbn, String title, Publisher publisher, List<Author> authors, double price, int amount) {
        this.isbn = isbn;
        this.title = title;
        this.publisher = publisher;
        this.authors = authors;
        this.price = price;
        this.amount = amount;
    }

    public void setIsbn(String isbn) {
        this.isbn = isbn;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setPublisher(Publisher publisher) {
        this.publisher = publisher;
    }

    public void setAuthors(List<Author> authors) {
        this.authors = authors;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public void setPrice(double price) {
        this.price = price;
    }
    
    public String getIsbn() {
        return isbn;
    }

    public String getTitle() {
        return title;
    }

    public Publisher getPublisher() {
        return publisher;
    }

    public List<Author> getAuthors() {
        return authors;
    }

    public int getAmount() {
        return amount;
    }

    public double getPrice() {
        return price;
    }      
}
